package com.example.demo.service;

import com.example.demo.dao.SmuserRepository;
import com.example.demo.entity.Smuser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
public class SmuserService{

    @Autowired
    public SmuserRepository smuserRepository;

    @Transactional
    public Smuser addUser(Smuser smuser){
        Smuser user = smuserRepository.save(smuser);
        return user;
    }

}
